package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 标书管理，审批该标书是否可用
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@TableName ("erp_bid_info")
@ApiModel (value = "标书管理，审批该标书是否可用", description = "标书管理，审批该标书是否可用")
public class BidEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("投标客户Id")
    @TableField ("customer_id")
    private String customerId;

    @ApiModelProperty ("投标信息Id")
    @TableField ("tender_id")
    private String tenderId;

    @ApiModelProperty ("标书编号")
    @TableField ("bid_number")
    private String bidNumber;

    @ApiModelProperty ("购买人员Id")
    @TableField ("buy_user_id")
    private String buyUserId;

    @ApiModelProperty ("购买标书金额")
    @TableField ("buy_money")
    private String buyMoney;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date changeTime;

    @TableField ("is_used")
    private Integer isUsed;

    @TableField(exist = false)
    @ApiModelProperty("投标决策信息")
    private TenderEntity tender;

    @TableField(exist = false)
    @ApiModelProperty("客户信息")
    private CustomerEntity customer;
}
